package week7.homework;

public class Books {
    protected String type, name, author;
    protected double price;
    protected int pages;

    public Books(String type, String name, String author, double price, int pages) {
        this.type = type;
        this.name = name;
        this.author = author;
        this.price = price;
        this.pages = pages;
    }

    public void setType(String name1) {
        type = name1;
    }

    public String getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getAuthor() {
        return author;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getPrice() {
        return price;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }
}
